//
//  XSQOLBBtn.m
//  BuDeJie
//
//  Created by Sem on 2018/6/29.
//  Copyright © 2018年 SEM. All rights reserved.
//

#import "XSQOLBBtn.h"

@implementation XSQOLBBtn
- (void)awakeFromNib{
    [super awakeFromNib];
    
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.xmg_centerX = self.xmg_width*0.5;
    self.imageView.xmg_y = 2;
    [self.titleLabel sizeToFit];
    self.titleLabel.xmg_centerX =self.xmg_width*0.5;
    self.titleLabel.xmg_y =self.xmg_height-self.titleLabel.xmg_height;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
